package com.qianxunclub.chapter11;

import com.qianxunclub.chapter11.bean.BeanInter;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class IndexBean {

    @Autowired
    public List<BeanInter> getMyBean(List<BeanInter> beanInterList) {
        beanInterList.forEach(beanInter -> System.out.println(beanInter.getName()));
        return beanInterList;
    }

}
